﻿<controls:ChildWindow x:Class="Jacobi.Seesmic.FeedReader.PluginSettingsView.EditFeedInfoView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="500"
           Title="Edit Feed Info"
>
    <Grid Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Text="Feed Url" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Center"/>
        <TextBox Height="23" Text="{Binding Path=Url, Mode=TwoWay}"
                 HorizontalAlignment="Right" VerticalAlignment="Center" Width="400" Margin="4" />

        <TextBlock Grid.Row="1" Text="Feed Type"
                   HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2"/>
        <ComboBox Grid.Row="1" ItemsSource="{Binding Path=FeedTypes}" SelectedItem="{Binding Path=SelectedFeedType, Mode=TwoWay}"
                  Height="23" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="4"/>

        <TextBlock Grid.Row="2" Text="Maximum Number of Items (0 is unfiltered)"
                   HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2"/>
        <TextBox Grid.Row="2" Height="23" Text="{Binding Path=MaxItemCount, Mode=TwoWay}"
                 HorizontalAlignment="Right" VerticalAlignment="Center" Width="40" Margin="4" />

        <Button Command="{Binding Path=CancelCommand}"
                Content="{Binding Path=CancelCommand.Text}"
                Width="75" Height="23" HorizontalAlignment="Right"
                Margin="0,12,0,0" Grid.Row="3" />
        <Button Command="{Binding Path=OkCommand}"
                Content="{Binding Path=OkCommand.Text}"
                Width="75" Height="23" HorizontalAlignment="Right"
                Margin="0,12,79,0" Grid.Row="3" />
    </Grid>
</controls:ChildWindow>